///Long-term anlaysis using census data 
clear
clear matrix
clear mata
cap log close
************************************************************************************
**change directory here

* DIRECTORY ROADMAP
sysdir set PLUS C:\ado\plus\c
************************************************************************************

global dir1 C:\Users\hab55\Dropbox\Second_paper_Ghana\2023_EDCC_Price\Data
global dir2 C:\Users\hab55\Dropbox\Second_paper_Ghana\2023_EDCC_Price\Do
global dir3 C:\Users\hab55\Dropbox\Second_paper_Ghana\2023_EDCC_Price\Output

********************************************************************************

use "$dir1\Ghana_2000_2010_census.dta", clear 

////////////////////////////////////////////////////////////////////////////////////

global ipumscontrols female head femaleXhead rural year 

//////////////////////////////////////////////////////////////////////////////
///Table C.11

areg yrschl shock_price_early1 $ipumscontrols i.ROB  i.ROB#c.YOB, ab (YOB) cluster (ROB)
boottest shock_price_early1=0 ,  nograph  
//outreg2 using "$dir3\longterm.tex", keep(shock_price_early ) stats(coef se) bdec(3) sdec(3) nocons  label addtext(ROB FE, Yes, YOB FE, Yes, ROB Trends, Yes)

areg yrschl shock_price_inutero $ipumscontrols i.ROB  i.ROB#c.YOB, ab (YOB) cluster (ROB)
boottest shock_price_inutero=0 ,  nograph  seed(321448699) 
//outreg2 using "$dir3\longterm.tex", keep(shock_price_inutero ) stats(coef se) bdec(3) sdec(3) nocons  label addtext(ROB FE, Yes, YOB FE, Yes, ROB Trends, Yes)


areg yrschl shock_price_schoolage  $ipumscontrols i.ROB  i.ROB#c.YOB, ab (YOB) cluster (ROB)
boottest shock_price_schoolage=0 ,  nograph  matsize(8) seed(321448699) 
//outreg2 using "$dir3\longterm.tex", keep(shock_price_schoolage ) stats(coef se) bdec(3) sdec(3) nocons  label addtext(ROB FE, Yes, YOB FE, Yes, ROB Trends, Yes)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////